/**
 * @author Wang Hai Long  [whailong2010@gmail.com]
 * @date Oct 31, 2014 3:22:45 PM
 */
package com.surent.utils;

import com.surent.model.dbmodel.House;
import com.surent.model.viewmodel.HouseList;

/**
 * @author Wang Hai Long [whailong2010@gmail.com]
 * @date Oct 31, 2014 3:22:45 PM
 */
public class HouseService {

	public HouseService() {
		super();
	}

	public HouseList toHouseList(House house) {
		HouseList houseList = new HouseList(house.getTitle(), house.getPrice() + "元/月", house.getHouseLayout(),
				house.getArea() + "平", house.getDecorateLevel(), house.getDistrict(), house.getCommunityName(),
				house.getLocation(), house.getFrom(), house.getRentType(), house.getCreatedAt().toLocaleString(),
				house.getOwner(), house);
		return houseList;
	}
}
